package com.educate.dao;

import com.educate.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: ZJQ
 * @DateTime: 2021/12/10 14:40
 * @Description: 更新用户的Dao接口
 */
@Mapper
public interface PersonalDao {

    /**
     * 查询所有信息
     * @param username
     * @return
     */
    User selectAll(String username);

    /**
     * 修改信息
     * @param user
     * @return
     */
    int updateMsg(User user);

    /**
     * 更换头像
     * @param path
     * @param username
     */
    void updateAvatarByUsername(@Param("path") String path, @Param("username") String username);
}
